<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <<script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
    <<script type="text/javascript">
$(function(){
	$("#subPage_search_btn").click(function(){
		var value=$("#subPage_search_txt").val();
		var p=/^[1-9][0-9]*$/;
		if(p.test(value)){
			if(value>0 && value<=${pageInfo.pageCount}){
				window.open("${pageInfo.action}?currentPage="+value,"_self");
			}else{
				alert("页号不在有效的范围内！");
				$("#subPage_search_txt").val("");
			}
		}else{
			alert("非法页号！");
			$("#subPage_search_txt").val("");
		}
	});
});
</script>
<table>
	<tr>
		<td width="50%">共<span>${pageInfo.pageCount }</span>页|第<span>${pageInfo.currentPage }</span>页|共<span>${pageInfo.recordCount}</span>条记录</td>
		<td width="49%" align="right"><a href="${pageInfo.action}?currentPage=1">首页</a>|
		<c:if test="${pageInfo.currentPage>1 }">
		<a href="${pageInfo.action}?currentPage=${pageInfo.currentPage-1 }">上一页</a>|
		</c:if>
		<c:if test="${pageInfo.currentPage<pageInfo.pageCount }">
		<a href="${pageInfo.action}?currentPage=${pageInfo.currentPage+1 }">下一页</a>|
		</c:if>
		<a href="${pageInfo.action}?currentPage=${pageInfo.pageCount}">尾页</a></td>
		<td width="1%"><table width="20%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="1%"><input type="text" id="subPage_search_txt" size="1"/></td>
							<td width="87%"><input type="button" id="subPage_search_btn" value="跳转"/></td>
						</tr>
		</table>
		
		</td>
	</tr>
</table>